import React from 'react';
import {  View,Text } from 'react-native';
import  axios from "axios";
console.log("调试");

axios.get("https:www.baidu.com")
    .then(console.log);
const  Index= ()=> <View>
  <Text>==========</Text>
  <Sub color="red">
    <View><Text>++++++++++</Text></View>
  </Sub>
  <Text>==========</Text>


</View>

//子组件 props.color
// 插槽 类似vew 中slot
const Sub =(props)=><View>
  <Text style={{color:props.color}}>子组件12</Text>
  {props.children}
</View>

export default Index;
